<?php
class Categorymanager_Data_Updatecategorysettings implements Categorymanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE category_settings SET category_settings.category_name='".$variables['post']['category_name']."', module_name = '".$variables['post']['module_name']."', category_settings.status_name = '".$variables['post']['status_name']."', category_settings.access_level='".$variables['post']['access_level']."' WHERE category_settings.category_name='".$variables['post']['old_category_name']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }

}
